/**
 *
 * 临时用电安全作业票
 * type: span/ span标签； input: el-input； select: el-select
 *
 */

 export const temporaryFormItems = () => {
  return [
    {
      label: "申请部门",
      prop: "specialApplicationDept",
      type: "span",
      options: [
        /* 相同的选择项列表 */
      ],
      rules: [],
    },
    {
      label: "申请人",
      prop: "createByName",
      type: "span",
      options: [
        /* 相同的选择项列表 */
      ],
      rules: [], 
    },
    {
      label: "作业内容",
      prop: "specialWorkInfo",
      type: "input",
      options: [],
      rules: [{ required: true, errorMessage: "请输入作业内容", trigger: "blur" }],
    },
    {
      label: "申请时间",
      prop: "createTime",
      type: "datetime",
      options: [],
      rules: [{ required: true, errorMessage: "请选择申请时间", trigger: "change" }],
    },
    {
      label: "作业地点",
      prop: "specialSite",
      type: "input",
      options: [],
      rules: [
        { required: true, errorMessage: "请输入作业地点", trigger: "blur" },
      ],
    },
    
    {
      label: "用电设备名称及额定功率",
      prop: "availableElectricPower",
      type: "input",
      options: [],
      rules: [
        { required: true, errorMessage: "请输入用电设备名称及额定功率", trigger: "blur" },
      ],
    },
    {
      label: "具体位置选择",
      prop: "specialLocation",
      type: "map",
      options: [],
      // rules: [{ required: true, errorMessage: "请选择动火地点及部位", trigger: "blur" }],
    },
    {
      label: "监护人",
      prop: "guardian",
      type: "select",
      options: [],
      rules: [{ required: true, errorMessage: "请选择监护人", trigger: "change" }],
    },
    {
      label: "用电人",
      prop: "electricityCustomer",
      type: "select",

      options: [],
      rules: [
        { required: true, errorMessage: "请选择用电人", trigger: "change" },
      ],
    },
    {
      label: "作业人",
      prop: "workPerson",
      type: "select",
      multiple: true,
      options: [],
      rules: [
        { required: true, errorMessage: "请选择作业人", trigger: "change" },
      ],
    },
    {
      label: "电工证号/(作业人)",
      prop: "operationCertificate",
      type: "input",
      options: [],
      rules: [{ required: true, errorMessage: "请输入电工证号", trigger: "blur" }],
    },
    {
      label: "作业负责人",
      prop: "head",
      type: "select",
      options: [],
      rules: [
        { required: true, errorMessage: "请选择作业负责人", trigger: "change" },
      ],
    },
    {
      label: "电工证号/(负责人)",
      prop: "headCertificate",
      type: "input",
      options: [],
      rules: [{ required: true, errorMessage: "请输入电工证号", trigger: "blur" }],
    },
    {
      label: "计划作业时间",
      prop: "putTime",
      type: "daterange",
      options: [],
      rules: [
        { required: true, errorMessage: "请选择计划作业时间", trigger: "change" },
      ],
    },
    

    {
      label: "关联其他特殊作业",
      prop: "associateOthers",
      checkBoxArr: [],
      type: "checkbox",
      options: [
        { value: "临时用电", text: "临时用电" },
        { value: "高处作业", text: "高处作业" },
        { value: "动火作业", text: "动火作业" },
        { value: "动土", text: "动土" },
        { value: "盲板抽堵", text: "盲板抽堵" },
        { value: "断路", text: "断路" },
        { value: "吊装", text: "吊装" },
        { value: "交叉作业", text: "交叉作业" },
      ],
      rules: [
        { required: true, errorMessage: "请选择其他特殊作业", trigger: "change" },
      ],
    },

    {
      label: "风险辨识",
      prop: "riskIdentification",
      checkBoxArr: [],
      type: "checkbox",
      options: [
        { value: "火灾", text: "火灾" },
        { value: "爆炸", text: "爆炸" },
        { value: "触电", text: "触电" },
        { value: "物体打击", text: "物体打击" },
        { value: "机械伤害", text: "机械伤害" },
        { value: "灼烫", text: "灼烫" },
        { value: "其他", text: "其他" },
      ],
      rules: [{ required: true, errorMessage: "请选择风险辨识", trigger: "change" }],
    },

    
    {
      label: "作业票号",
      prop: "jobNumber",
      checkBoxArr: [],
      type: "input",
      options: [
    
      ],
      disabled: true
    },
  ];
};
